package com.gb.demand.common.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 店铺自定义分类表  默认只有2级 顶级和次级
 * </p>
 *
 * @author shenzhiwen
 * @since 2020-03-14
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("wemall_goodsclass")
@ApiModel(value="Goodsclass对象", description="店铺自定义分类表  默认只有2级 顶级和次级")
public class GoodsClass extends Model<GoodsClass> implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @TableField("addTime")
    private Date addTime;

    @TableField("deleteStatus")
    private Object deleteStatus;

    @ApiModelProperty(value = "分类名")
    @TableField("className")
    private String className;

    @ApiModelProperty(value = "是否显示")
    private Object display;

    @ApiModelProperty(value = "等级")
    private Integer level;

    @ApiModelProperty(value = "是否推荐")
    private Integer recommend;

    @ApiModelProperty(value = "排序")
    private Integer sequence;

    @ApiModelProperty(value = "商品类型")
    @TableField("goodsType_id")
    private Long goodsTypeId;

    @ApiModelProperty(value = "父类")
    private Long parentId;

    private String seoDescription;

    private String seoKeywords;

    @ApiModelProperty(value = "图标系统")
    private String iconSys;

    @ApiModelProperty(value = "图标类型")
    private Integer iconType;

    @ApiModelProperty(value = "图标附件")
    private Integer iconAccId;

    @ApiModelProperty(value = "顶级分类id")
    private Integer topgcid;

}
